package com.example.dao;

import com.example.entity.NxTestpaperInfo;
import com.example.vo.NxTestpaperInfoVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface NxTestpaperInfoDao extends Mapper<NxTestpaperInfo> {
    List<NxTestpaperInfoVo> findByName(@Param("name") String name);

    @Select("select * from nx_testpaper_info where code = #{code}")
    NxTestpaperInfo findByCode(String code);
}
